﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Ex03.GarageManagementSystem.Console
{
    internal struct GarageMenuAction
    {
        // Members
        private char m_ActionKey;
        private eGarageActionType m_ActionType;
        private string m_ActionTitle;

        // Ctor
        public GarageMenuAction(char i_ActionKey, string i_ActionTitle, eGarageActionType i_ActionType)
        {
            m_ActionKey = i_ActionKey;
            m_ActionTitle = i_ActionTitle;
            m_ActionType = i_ActionType;
        }

        // Properties
        public char ActionKey
        {
            get 
            { 
                return m_ActionKey; 
            }

            set 
            { 
                m_ActionKey = value; 
            }
        }

        public string ActionTitle
        {
            get 
            { 
                return m_ActionTitle; 
            }

            set 
            { 
                m_ActionTitle = value; 
            }
        }

        public eGarageActionType ActionType
        {
            get 
            { 
                return m_ActionType; 
            }

            set 
            { 
                m_ActionType = value; 
            }
        }

        public override string ToString()
        {
            return string.Format("{0}: {1}", ActionKey, ActionTitle);
        }
    }
}
